<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head lang="zh-CN">
<link rel="icon" href="img/star.png" type="image/gif" />
<link rel="stylesheet" href="css/main.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Language" content="cs" />
<title>精品课系统首页</title>
</head>
<body>
<div id="header">
<div id="top_links">网站首页|设为首页|加入收藏|联系我们</div>
<div id="banner">CSOEI——长春理工大学光电信息学院</div>
<div id="nav"><a href=".">网站首页</a>|课程介绍|申报材料|教学队伍|<a
	href="hd1.jsp">互动程序</a>|教案|教学大纲|多媒体课件|实验教学|教学成果|科学研究|教学录像|学习工具箱</div>
</div>
<div id="main_container">
<div id="sub_nav">
<div class="condition">系统登陆信息</div>
<% String form="<form action=\"login\" method=\"post\"><div>用户名:</div><div><input checked=\"checked\" name=\"username\" value=\"请输入用户名\" onfocus=\"if(this.value='请输入用户名')this.value=''\" onblur=\"if(this.value=='')this.value='用户名'\" /></div><div>密码:</div><div><input type=\"password\" name=\"password\" value=\"\" /></div><div><input type=\"submit\" value=\"登录\" /></div></form>"; %>
<% if(session.getAttribute("username")==null){out.println(form);}else{out.println("正在以"+session.getAttribute("username")+"身份登录<br /><a href=\"logout\">退出登录</a>");} %>
</div>
<div id="main"> 
<div class="condition">课程简介</div>
</div>
</div>
</body>
<script>
var inps=document.getElementsByTagName('input');
for(var i=0;i<inps.length;i++){
if(inps[i].type=='text'&&inps[i].disabled!=true){
inps[i].focus();
break;
}
}
</script>
</html>